package com.ithuameng.admin.job;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

/**
 * 示例带参定时任务
 */
@Setter
@Slf4j
public class AdminSampleJob implements Job {

    /**
     * 若参数变量名修改 QuartzJobController中也需对应修改
     */
    private String parameter;

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        log.info(String.format("Admin 带参数定时任务 SampleParamJob !  参数：%s", this.parameter));
    }
}
